package com.framework.bdf4j.msg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.framework.bdf4j.msg.entity.domain.SysMsgReceiver;
import com.framework.bdf4j.msg.entity.dto.SysMsgRecieverSaveDTO;

import java.util.List;

/**
 * 消息接收人
 *
 * @author shan.deng
 * @date 2020-08-03 11:35:03
 */
public interface SysMsgReceiverService extends IService<SysMsgReceiver> {

    //查询未读消息数量
    Integer countNotReadMessage();

    //将当前登录人的消息置为已读
    Boolean readMessageById(Integer id);

    Boolean saveReceiverBatch(Integer msgId, List<SysMsgRecieverSaveDTO> sysMsgRecieverSaveDTOS);

    Boolean saveAllPerson(Integer msgId);

}
